package corba;

/**
 * Interface definition: StationServerCORBAInterface.
 * 
 * @author OpenORB Compiler
 */
public class StationServerCORBAInterfacePOATie extends StationServerCORBAInterfacePOA
{

    //
    // Private reference to implementation object
    //
    private StationServerCORBAInterfaceOperations _tie;

    //
    // Private reference to POA
    //
    private org.omg.PortableServer.POA _poa;

    /**
     * Constructor
     */
    public StationServerCORBAInterfacePOATie(StationServerCORBAInterfaceOperations tieObject)
    {
        _tie = tieObject;
    }

    /**
     * Constructor
     */
    public StationServerCORBAInterfacePOATie(StationServerCORBAInterfaceOperations tieObject, org.omg.PortableServer.POA poa)
    {
        _tie = tieObject;
        _poa = poa;
    }

    /**
     * Get the delegate
     */
    public StationServerCORBAInterfaceOperations _delegate()
    {
        return _tie;
    }

    /**
     * Set the delegate
     */
    public void _delegate(StationServerCORBAInterfaceOperations delegate_)
    {
        _tie = delegate_;
    }

    /**
     * _default_POA method
     */
    public org.omg.PortableServer.POA _default_POA()
    {
        if (_poa != null)
            return _poa;
        else
            return super._default_POA();
    }

    /**
     * Operation createCRecord
     */
    public String createCRecord(String fName, String lName, String crimeDesc, String status, String badgeID)
    {
        return _tie.createCRecord( fName,  lName,  crimeDesc,  status,  badgeID);
    }

    /**
     * Operation createMRecord
     */
    public String createMRecord(String fName, String lName, String description, String address, String lastDate, String lastLocation, String status, String badgeID)
    {
        return _tie.createMRecord( fName,  lName,  description,  address,  lastDate,  lastLocation,  status,  badgeID);
    }

    /**
     * Operation getRecordCounts
     */
    public String getRecordCounts(String badgeID)
    {
        return _tie.getRecordCounts( badgeID);
    }

    /**
     * Operation editRecord
     */
    public String editRecord(String lName, String recordID, String newStatus, String badgeID)
    {
        return _tie.editRecord( lName,  recordID,  newStatus,  badgeID);
    }

    /**
     * Operation transferRecord
     */
    public String transferRecord(String badgeID, String recordID, String remoteStationServerName)
    {
        return _tie.transferRecord( badgeID,  recordID,  remoteStationServerName);
    }

    /**
     * Operation printAllRecords
     */
    public void printAllRecords()
    {
        _tie.printAllRecords();
    }

}
